package com.beiding.isolateloader;

//只会加载一个类,多于的任何一个类也不会加载
public class OneClassLoader extends ClassLoader {

    //指挥官
    private CommanderClassLoader classLoaderCenter;

    //类名
    private String name;

    //类
    private Class clazz;

    @Override
    protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
        return classLoaderCenter.loadClass(name, resolve);
    }

    @Override
    public Class<?> loadClass(String name) throws ClassNotFoundException {
        return classLoaderCenter.loadClass(name);
    }


}
